package com.wx.generic.inter;

/**
 * 不继承泛型,那么泛型的类型默认是Object
 * @author wangxun
 * @version 1.0
 * @description: TODO
 * @date 2021/1/20 4:37 下午
 */
public class GenericImpl1 implements GenericInterface{
    private Object obj;

    @Override
    public boolean set(Object o) {
        this.obj = o;
        return true;
    }

    @Override
    public Object getNext() {
        return this.obj;
    }

    @Override
    public Object show(Object o) {
        return o;
    }
}
